package com.ruoyi.receipt.mapper;

import java.util.List;
import com.ruoyi.receipt.domain.TbExampleSubjectRelation;

/**
 * 例题-问题答案关联Mapper接口
 * 
 * @author ruoyi
 * @date 2021-03-31
 */
public interface TbExampleSubjectRelationMapper 
{
    /**
     * 查询例题-问题答案关联
     * 
     * @param id 例题-问题答案关联ID
     * @return 例题-问题答案关联
     */
    public TbExampleSubjectRelation selectTbExampleSubjectRelationById(Long id);

    /**
     * 查询例题-问题答案关联列表
     * 
     * @param tbExampleSubjectRelation 例题-问题答案关联
     * @return 例题-问题答案关联集合
     */
    public List<TbExampleSubjectRelation> selectTbExampleSubjectRelationList(TbExampleSubjectRelation tbExampleSubjectRelation);

    /**
     * 新增例题-问题答案关联
     * 
     * @param tbExampleSubjectRelation 例题-问题答案关联
     * @return 结果
     */
    public int insertTbExampleSubjectRelation(TbExampleSubjectRelation tbExampleSubjectRelation);

    /**
     * 修改例题-问题答案关联
     * 
     * @param tbExampleSubjectRelation 例题-问题答案关联
     * @return 结果
     */
    public int updateTbExampleSubjectRelation(TbExampleSubjectRelation tbExampleSubjectRelation);

    /**
     * 删除例题-问题答案关联
     * 
     * @param id 例题-问题答案关联ID
     * @return 结果
     */
    public int deleteTbExampleSubjectRelationById(Long id);

    /**
     * 批量删除例题-问题答案关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTbExampleSubjectRelationByIds(Long[] ids);

    public List<String> selectTbExampleSubjectRelationMangagerId(Long id);
    public int deleteTbExampleSubjectRelationSMId(Long id);
    public List<Long> selectRelation(Long subjectManagerId);

}
